import * as THREE from 'three';
import {Tshare} from '../utils/Tshare'

let container = document.getElementById("app"),
T = new Tshare(),sphere = null

init();
animate();

function init() {
    T.initEnv(container).loadHdrToScene().initOrbitControls()
    sphere = T.createSphereMesh();
    T.sceneGraph.add(sphere)
}

function animate() {
    requestAnimationFrame(animate);
    T.renderer.render(T.scene,T.camera);
}

